package cn.mazexal.examapi.dataware;

import cn.mazexal.examapi.models.db.UserMsgDO;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
*  用户消息表 Mapper
*
*/
@Mapper
public interface UserMsgMapper extends BaseMapper<UserMsgDO> {


    List<UserMsgDO> getUserMsgVOList(@Param("userId") Long userId,
                                     @Param("lastId") Long lastId,
                                     @Param("pageSize")Integer pageSize);

    int readMsg(@Param("id") Long id);

    int delMsg(@Param("id") Long id);
}